package com.jianbing.shasha.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jianbing.shasha.mapper.ShashaVoiceAnsMapper;
import com.jianbing.shasha.domain.ShashaVoiceAns;
import com.jianbing.shasha.service.IShashaVoiceAnsService;

/**
 * 语音部分答案Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-16
 */
@Service
public class ShashaVoiceAnsServiceImpl implements IShashaVoiceAnsService 
{
    @Autowired
    private ShashaVoiceAnsMapper shashaVoiceAnsMapper;

    /**
     * 查询语音部分答案
     * 
     * @param id 语音部分答案主键
     * @return 语音部分答案
     */
    @Override
    public ShashaVoiceAns selectShashaVoiceAnsById(Long id)
    {
        return shashaVoiceAnsMapper.selectShashaVoiceAnsById(id);
    }

    /**
     * 查询语音部分答案列表
     * 
     * @param shashaVoiceAns 语音部分答案
     * @return 语音部分答案
     */
    @Override
    public List<ShashaVoiceAns> selectShashaVoiceAnsList(ShashaVoiceAns shashaVoiceAns)
    {
        return shashaVoiceAnsMapper.selectShashaVoiceAnsList(shashaVoiceAns);
    }

    /**
     * 新增语音部分答案
     * 
     * @param shashaVoiceAns 语音部分答案
     * @return 结果
     */
    @Override
    public int insertShashaVoiceAns(ShashaVoiceAns shashaVoiceAns)
    {
        return shashaVoiceAnsMapper.insertShashaVoiceAns(shashaVoiceAns);
    }

    /**
     * 修改语音部分答案
     * 
     * @param shashaVoiceAns 语音部分答案
     * @return 结果
     */
    @Override
    public int updateShashaVoiceAns(ShashaVoiceAns shashaVoiceAns)
    {
        return shashaVoiceAnsMapper.updateShashaVoiceAns(shashaVoiceAns);
    }

    /**
     * 批量删除语音部分答案
     * 
     * @param ids 需要删除的语音部分答案主键
     * @return 结果
     */
    @Override
    public int deleteShashaVoiceAnsByIds(Long[] ids)
    {
        return shashaVoiceAnsMapper.deleteShashaVoiceAnsByIds(ids);
    }

    /**
     * 删除语音部分答案信息
     * 
     * @param id 语音部分答案主键
     * @return 结果
     */
    @Override
    public int deleteShashaVoiceAnsById(Long id)
    {
        return shashaVoiceAnsMapper.deleteShashaVoiceAnsById(id);
    }
}
